package cn.itsource.org.domain;

import cn.itsource.basic.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 部门domain
 */
@Data //编译时会加上
public class Department extends BaseDomain{
    private String sn;
    private String name;
    private String dirPath;
    private Integer state;
    private Long manager_id;
    //关联对象
    private Employee manager;
    private Long parent_id;
    //关联对象
    private Department parent;

    //子部门
    private List<Department> children = new ArrayList<>();

}
